package com.cost.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {
	
	final String prefix = "view/";

	@RequestMapping("/")
	public String login(){
		return "login";
	}
	
	@RequestMapping("/index")
	public String index(){
		return prefix + "index";
	}
	
	@RequestMapping("/bootm")
	public String bootm(){
		return prefix + "bootm";
	}
	
	/**
	 * 退出
	 * @return
	 */
	@RequestMapping("/exit")
	public String exit(){
		return "redirect:/";
	}
}
